package org.tgcloud.group.repository;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.tgcloud.group.entity.SystemNotifyTemplate;
import org.tgcloud.group.web.controller.dto.notify.SystemNotifyTemplateDTO;

import java.util.List;

/**
 * @Author: zhy
 * @Created: 2025-10-09-下午4:21
 * @Description: ${description}
 */
@Mapper
public interface SystemNotifyTemplateMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SystemNotifyTemplate record);

    int insertSelective(SystemNotifyTemplate record);

    SystemNotifyTemplate selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SystemNotifyTemplate record);

    int updateByPrimaryKey(SystemNotifyTemplate record);

    SystemNotifyTemplate selectMsgByCode(@Param("code") String code);

    SystemNotifyTemplate selectMsgByCodeAndNotId(@Param("code") String code, @Param("id") Long id);

    int updateDeletedById(@Param("id") Long id);

    List<SystemNotifyTemplateDTO> selectManageList(@Param("name") String name, @Param("code") String code, @Param("status") Integer status);
}